package com.oceansoft.mobile.econsole.modules.member.persistence;

import com.oceansoft.mobile.econsole.modules.member.entity.WtMember;
import com.oceansoft.mobile.econsole.modules.member.entity.WtMemberMange;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2016/1/31.
 */
@Repository
public interface IWtMemberMapper {

    WtMember getWtMemberByUserGuid(@Param("guid") String guid);

    WtMember getWtMemberByOpenid(@Param("openId") String openId);

    WtMember getInfoByUserName(@Param("userName") String userName);

    String  findCode(@Param("code") String code);

    int loadUserByTelAndPwd(@Param("userName") String userName, @Param("password") String password);

    int updateWtMemberByUserGuid(WtMember wtMember);

    int updateWtMemberByUserName(WtMember wtMember);

    int updateOpenidByUserName(@Param("userName") String userName, @Param("openid") String openid);

    int insertWtMemner(WtMember wtMember);

    int insertWtMemberMange(WtMemberMange wtMemberMange);

    WtMemberMange getWtMemberMange(String guid);

    int delWtMemberManage(String guid);

    WtMember loadUserByIdcardAndTel(@Param("idcard") String idcard, @Param("oldTel") String oldTel);

    List<String> findAllOpenIds();
}
